[ChangeLog]
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2011 16:47:35 +0000 (09:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2011 16:47:35 +0000 (09:47 -0700)
commitc6e8ae2a319785f02f91d1684003ce18280adf9c
tree6892a76a91331fdf2809dfbe31e13aa820d92091
parent4c9a283cbeb9c71f45ace2cb1adb5c72cd905e27
[ChangeLog]

Malloc failure behavior now depends on size of allocation.
* lib/allocator.h (struct allocator.die): New size arg.
* lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
If the actual problem is an ssize_t limitation, not a size_t or
malloc failure, fail with errno == ENAMETOOLONG instead of calling 'die'.
[src/ChangeLog]
Malloc failure behavior now depends on size of allocation.
* alloc.c (buffer_memory_full, memory_full): New arg NBYTES.
* lisp.h: Change signatures accordingly.
* alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c:
All callers changed.
ChangeLog
lib/allocator.h
lib/careadlinkat.c
src/ChangeLog
src/alloc.c
src/buffer.c
src/editfns.c
src/lisp.h
src/menu.c
src/minibuf.c
src/xterm.c